﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkLib.Configuration;
using System.Configuration;

namespace GestionePolveriImporter.Configuration
{
    [Serializable]
    public class ImporterSection : FLibConfigurationSection<ImporterSection>
    {
        //[ConfigurationProperty("Settings", IsDefaultCollection = true, IsKey = false, IsRequired = true)]
        //public SettingsElmentCollection Settings
        //{
        //    get { return (SettingsElmentCollection)this["Settings"]; }
        //}

        [ConfigurationProperty("", IsDefaultCollection = true, IsKey = false, IsRequired = true)]
        public SettingsElmentCollection Settings
        {
            get
            {
                return base[""] as SettingsElmentCollection;
            }

            set
            {
                base[""] = value;
            }
        }
    }

    public class SettingsElmentCollection : FLibConfigurationCollection<SettingElement>
    {
        public override ConfigurationElementCollectionType CollectionType
        {
            get
            {
                return ConfigurationElementCollectionType.BasicMap;
            }
        }
    }
}
